find_path(JANSSON_INCLUDE_DIR
    NAMES jansson.h
    HINTS ${JANSSON_ROOT_DIR}/include)

find_library(JANSSON_LIBRARIES
    NAMES jansson
    HINTS ${JANSSON_ROOT_DIR}/lib)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Jansson DEFAULT_MSG
    JANSSON_LIBRARIES
    JANSSON_INCLUDE_DIR)

mark_as_advanced(
    JANSSON_ROOT_DIR
    JANSSON_LIBRARIES
    JANSSON_INCLUDE_DIR)